package com.xinheyun.demo;

import java.util.Optional;
import org.springframework.util.CollectionUtils;
import java.util.ArrayList;
import java.util.List;

/**
 * @description: TODO
 * @author: Sarah
 * @modified By: Sarah
 * @date: Created in 2021/7/26 14:47
 * @version:v1.0
 */
public class listTest {

 public static void main(String[] args) {
  List<Integer> list = new ArrayList<>();
  System.out.println(Optional.of(list));
  System.out.println(CollectionUtils.isEmpty(list));



 }



}


